import 'package:flutterprojectportal/page/home_page.dart';
import 'package:flutterprojectportal/page/page1.dart';
import 'package:flutterprojectportal/page/page2.dart';
import 'package:flutterprojectportal/page/test_page.dart';
import 'package:flutterprojectportal/support/route_manager.dart';

var allPageRout = <String, PageBuilder>{}..addAll(_projectModule);

Map _projectModule = <String, PageBuilder>{
  'home_page': (pageName, params, uniqueId) => HomePage(),
  'test_page': (pageName, params, uniqueId) => TestPage(),
  'page1': (pageName, params, uniqueId) => Page1( // 也可以从内部获取 ModalRoute.of(context).settings.arguments;
        params: params,
      ),
  'page2': (pageName, params, uniqueId) => Page2(),
};
